billiards analysis